import http from "@/utils/request";
// 登录
export const login = (data) => {
  return http({
    url: "/auth/login",
    method: "POST",
    data: data,
  });
};

// 用户信息
export const getUserInfo = (data) => {
  return http({
    url: "/system/user/getInfo",
    method: "GET",
    data: data,
  });
};

// 获取金币信息
export const getUserJb = () => {
  return http({
    url: "/wechat/cyListInfo/getJb",
    method: "GET",
  });
};

// 签到
export const signInfo = (data) => {
  return http({
    url: "/wechat/signInfo",
    method: "POST",
    data: data,
  });
};

// 排行榜
export const topList = (data) => {
  return http({
    url: "/auth/login",
    method: "GET",
    data: data,
  });
};

// 上传昵称头像
export const updataUser = (data) => {
  return http({
    url: "/system/user/profile/updataUser",
    method: "POST",
    data: data,
  });
};